package com.cn.front.feign;

import com.cn.common.pojo.ResultModel;
import com.cn.front.feign.fallBack.ProjectFallBack;
import com.cn.front.feign.fallBack.TeamForHomeFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Primary
@FeignClient(value = "project",fallback = ProjectFallBack.class)
public interface ProjectFeign {
    @GetMapping("project/pForP")
     ResultModel pForP();
    @GetMapping("project/pByType")
    ResultModel pByType(@RequestParam("type") int type);
    @GetMapping("project/pForId")
    ResultModel pForId(@RequestParam("id") int id);
    @GetMapping("item/item")
    ResultModel item();

}
